package com.antler.smt.portal.mapper;

import com.antler.smt.entity.PurchaserAccountEntity;
import com.antler.smt.response.portal.GetPurchaserAccountResp;
import org.springframework.stereotype.Repository;

/**
 *  采购商账户Mapper
 *
 * @author zhangyi
 * @date 2018-04-17 14:56
 */
@Repository
public interface PurchaserAccountInfoMapper {

    /**
     *  获取当前采购商的账户信息
     *
     * @param memberId
     * @return
     */
    GetPurchaserAccountResp getMemberAccount(Long memberId);

    /**
     *  获取当前会员星级
     *
     * @param memberId
     * @return
     */
    Integer getStar(Long memberId);

    /**
     * 升级星级
     *
     * @param accountEntity
     * @return
     */
    int updateStar(PurchaserAccountEntity accountEntity);

}